﻿@model websitev2.Models.LogOnModel
@{
    ViewBag.Title = "StartStop - Login to your account to see your stats and awards.";
}
<div id="main" class="group">
    <div id="content" class="group">
        <h2>
            Log On</h2>
        <p>
            Please enter your user name (or emailaddress) and password. @Html.ActionLink("Register", "Register")
            if you don't have an account.
        </p>
        <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
        <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
        @Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")
        @using (Html.BeginForm())
        {
            <div class="group">
                <p>
                    @Html.LabelFor(m => m.UserName)
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </p>
                <p>
                    @Html.LabelFor(m => m.Password)
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </p>
                <p class="half">
                    @Html.CheckBoxFor(m => m.RememberMe)
                </p>
                <p class="half">
                    @Html.LabelFor(m => m.RememberMe)
                </p>
            </div>
            <p>
                <input type="submit" value="Log On" class="action medium" />
            </p> 
  
        }
       
    </div>
    <div id="sidebar">
        <div class="sideblock">
            <h4>
                Log on</h4>
            <p>
                You can logon with either your username or the email you registered with.</p>
            <h4>Register</h4>
                <p>If you don't have an account then it's free to <a href="/Account/Register">Register</a> all you need is a valid email address and a username.</p>
        </div>
        <!-- /sideblock -->
    </div>
</div>
